{php $records2=tag("table=category&condition=moduleid=".$printmoduleid." and parentid=0&pagesize=5&order=listorder,catid&template=null");}
{if $records2}
<div class="main">
	<div class="container">
		<div class="row">
<div class="infomax01 boxvalue">
{loop $records2 $r2}
	{php $records1=tag("moduleid=".$printmoduleid."&catid=".$r2["catid"]."&condition=thumb!='' and status=3&pagesize=1&order=level desc,addtime desc&template=null");}
	{if $records1}
	<div class="col-b-md-2 item-top">
		<div class="box-value">
			<p>
				<img src="{$records1[0][thumb]}" align="left" alt="{strip_tags($records1[0][title])}">
				<a class="texttitle" href="{$records1[0][linkurl]}" target="_blank" title="{strip_tags($records1[0][title])}">{strip_tags($records1[0][title])}</a><br>{strip_tags($records1[0][introduce])}
			</p>
			<span><a class="texttitle" href="{$MODULE[$printmoduleid][linkurl]}{$r2[linkurl]}" title="{strip_tags($r2[catname])}">{strip_tags($r2[catname])}</a></span>
		</div>
	</div>
	{/if}
{/loop}
</div>
		</div>
	</div>
</div>
{/if}